

import { get ,post} from "./ajax"

export const request  = {
    getToken:params=>get("/api/gettoken",params),
    //登录
    login:params=>post("/api/login",params),
      // 发送验证码 
      sendcaptcha:params=>get("/api/sendcaptcha",params),

      // 测试验证码 
      verifycaptcha:params=>get("/api/verifycaptcha",params),
  //获取token
      getuserinfo:params=>get("/api/getuserinfo",params),

  //获取用户列表
      getuserlist:params=>get("/api/getuserlist",params),

      addusers:params=>post("/api/addusers",params),
      
    
      deluserone:params=>post("/api/deluserone",params),

      updateuserone:params=>post("/api/updateuserone",params),
   

      uploadavatar:params=>post("/api/uploadavatar",params),

      uploadfileimg:params=>post("/api/uploadfileimg",params),
     
      addannoone:params=>post("/api/addannoone",params),

      addannolist:params=>post("/api/addannolist",params),

      updatemine:params=>post("/api/updatemine",params),


  
}